XPath Query Evaluation: Improving Time and Space Efficiency
نویسندگان
چکیده
Contemporary XPath query engines evaluate queries in time exponential in the sizes of input queries, a fact that has gone unnoticed for a long time. Recently, the first mainmemory evaluation algorithm for XPath 1.0 with polynomial time combined complexity, i.e., which runs in polynomial time both with respect to the size of the data and the queries, has been published (cf. [11]). In this paper, we present several important improvements and extensions of that work, including new XPath processing algorithms with improved time and space efficiency. Moreover, we define a very large and practically relevant fragment of XPath for which a further optimized form of query evaluation is possible. Apart from its immediate relevance for XPath query processing, our work also sheds new light at those features of XPath 1.0 which are most costly relative to their practical usefulness.
منابع مشابه
Towards a Streamed XPath Evaluation
XPath is a language for addressing fragments of XML documents, used in query and transformation languages such as XQuery and XSLT. For many applications it is desirable to process XPath on the fly and progressively against data streams. This diploma thesis is devoted to streamed and progressive evaluation of XPath. A streamed and progressive XPath evaluation considerably reduces the needed memo...
متن کاملWorst-case optimal algorithm for XPath evaluation over XML streams
We consider the XPath evaluation problem: Evaluate an XPath query Q on a streaming XML documentD; i.e., determine the setQ(D) of document elements selected byQ. We mainly consider Conjunctive XPath queries that involve only the child and descendant axes. Previously known in-memory algorithms for this problem use O(|D|) space and O(|Q||D|) time. Several previously known algorithms for the stream...
متن کاملDeliverable D2.1 First Year Report on Workpackage 2
Objectives of the WP. The key objectives were: 1. Develop new techniques and algorithms for schema mapping and Web data exchange; and 2. Develop new techniques and algorithms for improving query evaluation by making use of schema information. The first objective is represented by tasks T2.1 (Schema Mappings for XML) and T2.2 (Data Exchange for XML Documents), and the second by tasks T2.3 (Query...
متن کاملEvaluating an XPath Query on a Streaming XML Document
We present an efficient algorithm for evaluating an XPath query Q (involving only child and descendant axes) on a streaming XML document D. Previously known in-memory algorithms for XPath evaluation use O(|D|) space and O(|Q||D|) time. Several previous algorithms for the streaming version use Θ(d +c) space and Θ(d|D|) time in the worst case; d is the depth of D, n is the number of location step...
متن کاملVAMANA : A High Performance, Scalable and Cost Driven XPath Engine
Many applications are migrating or beginning to make use native XML data. We anticipate that queries will emerge that emphasize the structural semantics of XML query languages like XPath and XQuery. This brings a need for an efficient query engine and database management system tailored for XML data similar to traditional relational engines. While mapping large XML documents into relational dat...
متن کامل